package com.glink.manage.domain;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

@ApiModel(value = "AttendanceBean对象", description = "出勤")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("attendance")
public class AttendanceBean {

    @ApiModelProperty(value = "主键id")
    @TableId
    private String objId;

    @ApiModelProperty(value = "身份证")
    private String card;

    @ApiModelProperty(value = "设备ID")
    private String barriersObjId;

    @ApiModelProperty(value = "设备号")
    private String devSn;

    @ApiModelProperty(value = "工程ID")
    private String constructionWorkObjId;
    
    @ApiModelProperty(value = "现场ID")
    private String constructionWorkSiteObjId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "参建单位")
    private String unitObjId;

    @ApiModelProperty(value = "打卡日期")
    private LocalDate checkinDate;

    @ApiModelProperty(value = "打卡时间")
    private LocalTime checkinTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "人员类型")
    private String personType;
    
    @ApiModelProperty(value = "识别照片")
    private String captureImg;

}
